package network;

import java.io.IOException;
import java.net.Socket;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-10-22
 * Time: 20:15
 */
public class TcpEcCl {
    private Socket socket = null;

    public TcpEcCl(String serverIp,int serverPort) throws IOException {
        //Socket 构造方法可以识别点分十进制格式的ip地址
        //new这个对象的同时就会进行TCP连接操作。
        socket = new Socket(serverIp,serverPort);
    }
}
